package com.ruyuan.scholartrade;

import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitScan;
import com.scholar.shop.seller.login.LoginApi;
import com.scholar.shop.trad.coupon.api.CouponAPI;
import com.scholar.shop.trad.login.BuyerLoginApi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@RetrofitScan({"com.scholar.shop.trad"})
public class ScholarTradeApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ScholarTradeApplication.class, args);
       System.out.println( run.getBean(LoginApi.class).login("food","96e79218965eb72c92a549dd5a330112"));
       System.out.println( run.getBean(CouponAPI.class).editCouponShopName(11,"11")) ;
    }

}
